package com.yjd.pub.settlement.dao.impl;

import org.springframework.stereotype.Component;
import com.yjd.comm.base.dao.impl.BaseDaoImpl;
import com.yjd.comm.settlement.model.ClearDayFundChannelModel;
import com.yjd.pub.settlement.dao.IClearDayFundChannelDao;

import java.util.Map;

/**
 * <b>description</b>：第三方资金渠道日结算表数据访问层 <br>
 * <b>time</b>：2018-03-08 11:04:24 <br>
 * <b>author</b>： carl
 */
@Component("clearDayFundChannelDao")
public class ClearDayFundChannelDaoImpl extends BaseDaoImpl implements IClearDayFundChannelDao {

	private static final String SQLMAPNAMESPACE = ClearDayFundChannelModel.class.getName();
	private static final String PKNAME = "id";

	@Override
	public String getPrimaryKeyName() {
		return PKNAME;
	}

	@Override
	public String getSqlmapNamespace() {
		return SQLMAPNAMESPACE;
	}

	@Override
	public int deleteSettlementList(Map map) throws Exception {
		return this.getSqlMap(true).delete(this.getStatement("deleteSettlement"), map);
	}
}
